package com.dxy.lc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;

import com.dxy.lc.model.bean.FileUploadDto;
import com.dxy.lc.model.entity.Attachment;
import org.springframework.core.io.Resource;
import org.springframework.http.ResponseEntity;

/**
* <p>
* 附件表 服务接口
* </p>
*
* @author dxy
* @since 2024-09-28
*/
public interface AttachmentService extends IService<Attachment> {

    void delByIds(List<Integer> ids);

    Attachment getDetail(Integer id);

    List<Attachment> batchUpload(List<FileUploadDto> dtoList);

    ResponseEntity<Resource> getFile(String type, Long id);

    List<Attachment> getFileList(String bizType, String bizId);

    void delByBizTypeAndBizId(String bizType, String bizId);
}
